﻿<%@ Page Title="" Language="C#" MasterPageFile="MasterPage.master" AutoEventWireup="true" CodeFile="CandidatoAlteracao.aspx.cs" Inherits="CandidatoAlteracao" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

    <script src="../../Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.maskedinput-1.1.4.pack.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.funcoes.js" type="text/javascript"></script>

    <script type="text/javascript">
        $(document).ready(function () {
            $("#ctl00_ContentPlaceHolder1_txtCPF").mask("999.999.999-99");
            $("#ctl00_ContentPlaceHolder1_txtDataNascimento").mask("99/99/9999");
            $("#ctl00_ContentPlaceHolder1_txtFone").mask("(99) 9999-9999");
            $("#ctl00_ContentPlaceHolder1_txtFone2").mask("(99) 9999-9999");
            $("#ctl00_ContentPlaceHolder1_txtCEP").apenasNumeros();
            $("#ctl00_ContentPlaceHolder1_txtNumero").apenasNumeros();
            $("#ctl00_ContentPlaceHolder1_txtRG").apenasNumeros();
        });

    </script>


    <style type="text/css">
    .tabela 
    {
       font: 18px tahoma, arial;
    }
    .tabela span 
    {
        font: 11px tahora, arial;
    }
    .dados
    {
        width:133px;
        }
    .descricao 
    {
        width: 345px;
    }
    select
    {
        font: 14px tahoma, arial;
        padding: 3px;
    }
    .nome 
    {
        text-align:right;
        font: bold 30px Tahoma, Arial;
        color: #006C91;
    }

    img 
    {
        border: none;
    }

    input[type=text], input[type=password]
    {
        padding: 3px;
    }
    .campo
{
    margin-left: 2px;
}
    </style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

<table style="width:494px; margin-top:10px;" cellpadding="0" cellspacing="4" class="tabela">
<tr>
    <td colspan="2" class="nome">Alteração de Candidato</td>
</tr>
<tr>
    <td colspan="2">
        <asp:HiddenField ID="hfInscritoPor" runat="server" />
    </td>
</tr>
</table>

<table style="494px: ;" cellpadding="0" cellspacing="4" class="tabela">   
<tr>
    <td class="dados">CPF:</td>
    <td align="left" class="style2">
        <table cellpadding="0" cellspacing="0" style="width: 280px;" border="0">
            <tr>
                <td style="width:250px;">
                    <asp:TextBox ID="txtCPF" runat="server" MaxLength="14" Width="140px"></asp:TextBox>
                </td>
                <td>
                    Sexo:&nbsp;</td>
                <td align="right">
                    <asp:DropDownList ID="ddSexo" runat="server" EnableViewState="False">
                        <asp:ListItem></asp:ListItem>
                        <asp:ListItem Value="Masculino">M</asp:ListItem>
                        <asp:ListItem Value="Feminino">F</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
        </table>
    </td>
</tr>    
<tr>
    <td class="dados">RG:</td>
    <td align="left" class="style2">
        <table cellpadding="0" cellspacing="0" style="width: 300px;">
            <tr>
                <td>
                    <asp:TextBox ID="txtRG" runat="server" EnableViewState="False" MaxLength="10" 
                        Width="100px"></asp:TextBox>
                </td>
                <td align="right">
                    Emissor:</td>
                <td align="right">
                    <asp:TextBox ID="txtRGOrgao" runat="server" EnableViewState="False" 
                        MaxLength="10" Width="80px"></asp:TextBox>
                    &nbsp;
                </td>
            </tr>
        </table>
    </td>
</tr>    
    <tr>
        <td class="dados">
            Nome:</td>
        <td align="left" class="style2">
            <asp:TextBox ID="txtNome" runat="server" MaxLength="100" Width="310px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="dados">
            Dt nascimento:</td>
        <td align="left" class="style2">
            <asp:TextBox ID="txtDataNascimento" runat="server" MaxLength="10" Width="110px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="dados">
            Nacionalidade:</td>
        <td align="left" class="style2">
            <asp:TextBox ID="txtNacionalidade" runat="server" MaxLength="20" Width="200px"></asp:TextBox>
        </td>
    </tr>
</table>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<table style="width:494px;" cellpadding="0" cellspacing="4" class="tabela">
<tr>
    <td class="dados">CEP:</td>
    <td align="left" class="descricao">
        <asp:TextBox ID="txtCEP" runat="server" MaxLength="8" Width="80px" 
            AutoPostBack="True" ontextchanged="txtCEP_TextChanged"></asp:TextBox>
        <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
            <ProgressTemplate>
                <table style="width:300px;" cellpadding="0">
                    <tr>
                        <td style="width: 12px;">
                            <img alt="..." src="../../tiny_red.gif" style="width: 10px; height: 10px" /></td>
                        <td>
                        <span>Aguarde, preenchendo os dados do endereço...</span></td>
                    </tr>
                    </table>
            </ProgressTemplate>
        </asp:UpdateProgress>

    </td>
</tr>    
<tr>
    <td class="dados">Endereço:</td>
    <td align="left" class="descricao">
        <asp:TextBox ID="txtEndereco" runat="server" MaxLength="100" Width="310px"></asp:TextBox>
    </td>
</tr>
<tr>
    <td class="dados">Número:</td>
    <td align="left" class="descricao">
        <asp:TextBox ID="txtNumero" runat="server" MaxLength="8" Width="80px"></asp:TextBox>
    </td>
</tr>    
<tr>
    <td class="dados">Complemento:</td>
    <td align="left" class="descricao">
        <asp:TextBox ID="txtComplemento" runat="server" MaxLength="20"></asp:TextBox>
    </td>
</tr>    
<tr>
    <td class="dados">Bairro:</td>
    <td align="left" class="descricao">
        <asp:TextBox ID="txtBairro" runat="server" MaxLength="50" Width="210px"></asp:TextBox>
    </td>
</tr>    
<tr>
    <td class="dados">Cidade:</td>
    <td align="left" class="descricao">
        <asp:TextBox ID="txtCidade" runat="server" MaxLength="50" Width="210px"></asp:TextBox>
        &nbsp;/
        <asp:DropDownList ID="ddUF" runat="server" EnableViewState="False">
            <asp:ListItem></asp:ListItem>
            <asp:ListItem Value="AC">AC</asp:ListItem>
            <asp:ListItem Value="AL">AL</asp:ListItem>
            <asp:ListItem Value="AP">AP</asp:ListItem>
            <asp:ListItem Value="AM">AM</asp:ListItem>
            <asp:ListItem Value="BA">BA</asp:ListItem>
            <asp:ListItem Value="CE">CE</asp:ListItem>
            <asp:ListItem Value="DF">DF</asp:ListItem>
            <asp:ListItem Value="GO">GO</asp:ListItem>
            <asp:ListItem Value="ES">ES</asp:ListItem>
            <asp:ListItem Value="MA">MA</asp:ListItem>
            <asp:ListItem Value="MT">MT</asp:ListItem>
            <asp:ListItem Value="MS">MS</asp:ListItem>
            <asp:ListItem Value="MG">MG</asp:ListItem>
            <asp:ListItem Value="PA">PA</asp:ListItem>
            <asp:ListItem Value="PB">PB</asp:ListItem>
            <asp:ListItem Value="PR">PR</asp:ListItem>
            <asp:ListItem Value="PE">PE</asp:ListItem>
            <asp:ListItem Value="PI">PI</asp:ListItem>
            <asp:ListItem Value="RJ">RJ</asp:ListItem>
            <asp:ListItem Value="RN">RN</asp:ListItem>
            <asp:ListItem Value="RS">RS</asp:ListItem>
            <asp:ListItem Value="RO">RO</asp:ListItem>
            <asp:ListItem Value="RR">RR</asp:ListItem>
            <asp:ListItem Value="SP">SP</asp:ListItem>
            <asp:ListItem Value="SC">SC</asp:ListItem>
            <asp:ListItem Value="SE">SE</asp:ListItem>
            <asp:ListItem Value="TO">TO</asp:ListItem>
        </asp:DropDownList>
    </td>
</tr> 
</table>
</ContentTemplate>
</asp:UpdatePanel>

<table style="width:494px;" cellpadding="0" cellspacing="4" class="tabela">   
<tr>
    <td class="style1">Estado civil:</td>
    <td align="left" class="style2">
                <asp:DropDownList ID="ddEstadoCivil" runat="server" Width="110px">
                    <asp:ListItem></asp:ListItem>
                    <asp:ListItem>Solteiro(a)</asp:ListItem>
                    <asp:ListItem>Casado(a)</asp:ListItem>
                    <asp:ListItem>Separado(a)</asp:ListItem>
                    <asp:ListItem>Divorciado(a)</asp:ListItem>
                    <asp:ListItem>Viúvo(a)</asp:ListItem>
                </asp:DropDownList>

    </td>
</tr>    
<tr>
    <td class="style1">Escolaridade:</td>
    <td align="left" class="style2">
    <asp:DropDownList ID="ddEscolaridade" runat="server">
        <asp:ListItem></asp:ListItem>
        <asp:ListItem Value="1">Ensino fundamental completo</asp:ListItem>
        <asp:ListItem Value="1">Ensino fundamental cursando</asp:ListItem>
        <asp:ListItem Value="1">Ensino fundamental incompleto</asp:ListItem>
        <asp:ListItem Value="2">Ensino médio completo</asp:ListItem>
        <asp:ListItem Value="2">Ensino médio cursando</asp:ListItem>
        <asp:ListItem Value="2">Ensino médio incompleto</asp:ListItem>
        <asp:ListItem Value="3">Superior completo</asp:ListItem>
        <asp:ListItem Value="3">Superior cursando</asp:ListItem>
        <asp:ListItem Value="3">Superior incompleto</asp:ListItem>
    </asp:DropDownList>
    </td>
</tr>    
<tr>
    <td class="style1">Telefone 1:
    <td align="left" class="style2">
        <asp:TextBox ID="txtFone" runat="server" MaxLength="14" Width="140px"></asp:TextBox>
    </td>
</tr>    
<tr>
    <td class="dados">Telefone 2:</td>
    <td class="descricao">
        <asp:TextBox ID="txtFone2" runat="server" MaxLength="14" Width="140px"></asp:TextBox>
    </td>
</tr>
<tr>
    <td class="dados">Email:</td>
    <td class="descricao">
        <asp:TextBox ID="txtEmail" runat="server" MaxLength="50" Width="210px"></asp:TextBox>
    </td>
</tr>
<tr>
    <td class="dados">Senha:</td>
    <td class="descricao">
        <table cellpadding="0" cellspacing="0" style="width:100%;">
            <tr>
                <td>
        <asp:TextBox ID="txtSenha" runat="server" MaxLength="8" 
            Width="80px"></asp:TextBox>
                </td>
                <td align="right">
                    Confirma:&nbsp;</td>
                <td>
        <asp:TextBox ID="txtSenhaConfirma" runat="server" MaxLength="8" 
            Width="80px"></asp:TextBox>
                </td>
            </tr>
        </table>
    </td>
</tr>
        <tr><td colspan="2" style="height:10px;">
            <asp:RequiredFieldValidator ID="RV8" runat="server" 
                ControlToValidate="ddSexo" Display="None" ErrorMessage="Informe o sexo"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RV9" runat="server" 
                ControlToValidate="txtNome" Display="None" ErrorMessage="Informe o nome"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RV10" runat="server" 
                ControlToValidate="txtDataNascimento" Display="None" 
                ErrorMessage="Informe a data de nascimento"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RV12" runat="server" 
                ControlToValidate="ddUF" Display="None" ErrorMessage="Informe o Estado"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RV1" runat="server" ControlToValidate="txtCEP" 
                Display="None" ErrorMessage="Informe o CEP"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RV2" runat="server" 
                ControlToValidate="txtEndereco" Display="None" 
                ErrorMessage="Informe o endereço"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RV3" runat="server" 
                ControlToValidate="txtNumero" Display="None" ErrorMessage="Informe o número"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RV4" runat="server" 
                ControlToValidate="txtBairro" Display="None" ErrorMessage="Informe o bairro"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RV5" runat="server" 
                ControlToValidate="txtCidade" Display="None" ErrorMessage="Informe a cidade"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RV6" runat="server" ControlToValidate="txtFone" 
                Display="None" ErrorMessage="Informe o telefone"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RV13" runat="server" 
                ControlToValidate="ddEstadoCivil" Display="None" 
                ErrorMessage="Informe o Estado Civil"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RV14" runat="server" 
                ControlToValidate="ddEscolaridade" Display="None" 
                ErrorMessage="Informe a Escolaridade"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RV7" runat="server" 
                ControlToValidate="txtSenha" Display="None" ErrorMessage="Informe a senha"></asp:RequiredFieldValidator>
            <asp:CompareValidator ID="CV1" runat="server" 
                ControlToCompare="txtSenhaConfirma" ControlToValidate="txtSenha" Display="None" 
                ErrorMessage="A senha confirmada deve ser igual a fornecida"></asp:CompareValidator>
            <asp:CompareValidator ID="CV2" runat="server" ControlToValidate="txtCEP" 
                Display="None" 
                ErrorMessage="O CEP deve ser preenchido apenas com números, sem sinal" 
                Operator="DataTypeCheck" Type="Double"></asp:CompareValidator>
            <asp:CompareValidator ID="CV3" runat="server" ControlToValidate="txtDataNascimento" 
                Display="None" 
                ErrorMessage="Data de nascimento inválida" 
                Operator="DataTypeCheck" Type="Date"></asp:CompareValidator>
            <asp:RegularExpressionValidator ID="REV1" runat="server" 
                ControlToValidate="txtEmail" Display="None" ErrorMessage="Email inválido" 
                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            <asp:ValidationSummary ID="VS1" runat="server" ShowMessageBox="True" 
                ShowSummary="False" />
            </td></tr>
        </table>
        <div style="text-align:right">
            <asp:ImageButton ID="btnAlterar" runat="server" 
                ImageUrl="../figuras/bAlterar.gif" 
                onclick="btnAlterar_Click" />
&nbsp;</div>
</asp:Content>

